package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.UUID;

/**
 * 礼券实体类
 */
public class GiftCertificate {

    private String giftCertificateId= UUID.randomUUID().toString();//主键

    private String giftCertificateName;//礼券名称

    private Integer giftCertificateValue;//礼券面值

    private Integer giftCertificateCondition;//礼券的使用条件

    private String giftCertificateScope;//礼券的使用范围

    private Integer giftCertificateNumber;//总发行量

    private Integer soldOutNumber=0;//已领用的数量

    private Integer eachLimit=1;//每人限额

    private String giftCertificateStart;//开始时间

    private String giftCertificateEnd;//失效时间

    private Integer giftCertificateStatus=0;//状态值：0未开启，1开启，-1失效

    private Integer giftCertificateDel=0;//逻辑删除，默认0，-1删除

    private String createTime= DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    private String delTime;//删除时间   

    private String updateTime;//修改时间

    public String getGiftCertificateId() {
        return giftCertificateId;
    }

    public void setGiftCertificateId(String giftCertificateId) {
        this.giftCertificateId = giftCertificateId == null ? null : giftCertificateId.trim();
    }

    public String getGiftCertificateName() {
        return giftCertificateName;
    }

    public void setGiftCertificateName(String giftCertificateName) {
        this.giftCertificateName = giftCertificateName == null ? null : giftCertificateName.trim();
    }

    public Integer getGiftCertificateValue() {
        return giftCertificateValue;
    }

    public void setGiftCertificateValue(Integer giftCertificateValue) {
        this.giftCertificateValue = giftCertificateValue;
    }

    public Integer getGiftCertificateCondition() {
        return giftCertificateCondition;
    }

    public void setGiftCertificateCondition(Integer giftCertificateCondition) {
        this.giftCertificateCondition = giftCertificateCondition;
    }

    public String getGiftCertificateScope() {
        return giftCertificateScope;
    }

    public void setGiftCertificateScope(String giftCertificateScope) {
        this.giftCertificateScope = giftCertificateScope == null ? null : giftCertificateScope.trim();
    }

    public Integer getGiftCertificateNumber() {
        return giftCertificateNumber;
    }

    public void setGiftCertificateNumber(Integer giftCertificateNumber) {
        this.giftCertificateNumber = giftCertificateNumber;
    }

    public Integer getSoldOutNumber() {
        return soldOutNumber;
    }

    public void setSoldOutNumber(Integer soldOutNumber) {
        this.soldOutNumber = soldOutNumber;
    }

    public Integer getEachLimit() {
        return eachLimit;
    }

    public void setEachLimit(Integer eachLimit) {
        this.eachLimit = eachLimit;
    }

    public String getGiftCertificateStart() {
        return giftCertificateStart;
    }

    public void setGiftCertificateStart(String giftCertificateStart) {
        this.giftCertificateStart = giftCertificateStart == null ? null : giftCertificateStart.trim();
    }

    public String getGiftCertificateEnd() {
        return giftCertificateEnd;
    }

    public void setGiftCertificateEnd(String giftCertificateEnd) {
        this.giftCertificateEnd = giftCertificateEnd == null ? null : giftCertificateEnd.trim();
    }

    public Integer getGiftCertificateStatus() {
        return giftCertificateStatus;
    }

    public void setGiftCertificateStatus(Integer giftCertificateStatus) {
        this.giftCertificateStatus = giftCertificateStatus;
    }

    public Integer getGiftCertificateDel() {
        return giftCertificateDel;
    }

    public void setGiftCertificateDel(Integer giftCertificateDel) {
        this.giftCertificateDel = giftCertificateDel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}